from langchain_core.tools import tool

import os

@tool
def list_directory(path):
    """获取指定目录下的文件列表。"""
    for file in os.listdir(path):
        print(file)

@tool
def CwdTool():
    """Returns the current working directory"""
    return os.getcwd()